#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <windows.h>
int count_one3(int m)
{
	int count = 0;
	while (m)
	{
		m = m & (m - 1);
		count++;
	}
	return count;
}
int main()
{
	int n = -1;
	int count = count_one3(n);
	printf("%d\n", count);
	system("pause");
	return 0;
}